package com.nsgf.library.base;

import android.app.Application;
import android.os.StrictMode;
import android.util.Log;
import android.widget.Toast;

import com.netease.yunxin.app.im.IMApplication;
import com.nsgf.library.utils.SysUtil;


/**
 * Copyright(c) 2020 极光
 * Description
 */
public class BaseApplication extends IMApplication {


    public static BaseApplication application;

    public static BaseApplication getInstance() {
        return application;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        SysUtil.setAppVersion(this);

        // android 7.0系统解决拍照的问题
        StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
        StrictMode.setVmPolicy(builder.build());
        builder.detectFileUriExposure();
    }
}
